package com.itheima.patterns.structuralpattern.adapter.class_adapter;

//计算机类
public class Computer {
    //从 SD 卡中读取数据
    public String readSD(SDCard sdCard) {
        if(sdCard == null) {
            throw  new NullPointerException("sd card cannot be null");
        }
        return sdCard.readSD();
    }
}